<%if @project.finished_milestones.size>0%>
<!--Completed start-->
<div id=finished_milestone>
<div class="milestone_label finished"><%="Completed Milestone".t%> </div>
<%@project.finished_milestones.each do |milestone|%>
<div class="milestone_item finished_item">
<%="<strong>" + time_ago_in_words(milestone.due_at) + " later".t + "</strong>(" + milestone.due_at.strftime('%m/%d %Y') + ")"%>
<span class='intro_txt'> <%=" - " + milestone.user.name if milestone.user%></span>
 <span class="private_label float_right"><%="Private".t if milestone.private%></span>
<h2><span id='indi_<%=milestone.id%>' style="display:none"><%=image_tag"indicator.gif"%></span> 
 <%=check_box_tag "ss","",true,{:onclick=>remote_function(:url=>{:controller=>'milestones',:action=>'unfinish',:id=>milestone.id,:project_id=>milestone.project.id},:loading=>"Element.show('indi_#{milestone.id}')")}%><%=milestone.name%>
  <%=link_to"Edit".t,edit_milestone_path(milestone.project,milestone),:class=>'admin'%>
  <%=link_to image_tag("trash.gif",:border=>0),milestone_path(@project,milestone),:method=>'delete',:confirm=>"Are you sure?".t,:class=>'admin'%>

<%if (todos=milestone.todos).size > 0%>
 <%todos.each do |t|%>
   <li><%=link_to t.name,todos_url(@project)%> <span class=intro_txt>(<%="to-do list".t%>)</span></li>
 <%end%>
<%end%>
</h2>
</div>
<%end%>
</div>
<!--Completed end-->
<%end%>
